package com.bosssoft.trainee.nontax.entity.po;

import lombok.*;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.io.Serializable;

@Component
@Builder
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of={"userId", "roleId"})
public class UserRole implements Serializable {
    private static final long serialVersionUID = -70990722429225897L;
    
    private Integer userId;
    
    private Integer roleId;
    /**
     * 用作软删除使用 0:可用 非0表示已删除
     */
    private Integer isValid;
    
    private Date createTime;
    
    private Date updateTime;
}

